package com.go.ssm.web.action;

import com.go.ssm.domain.Account;
import com.go.ssm.service.IAccountService;
import com.opensymphony.xwork2.Action;

public class AccountAction extends BaseAction {
	private static final long serialVersionUID = 1L;

	private IAccountService accountService;

	public String list() {
		Account account = new Account();
		account.setToPage(pageModel.getToPage());
		pageModel = accountService.findPagedList(account);
		return Action.SUCCESS;
	}

	public IAccountService getAccountService() {
		return accountService;
	}

	public void setAccountService(IAccountService accountService) {
		this.accountService = accountService;
	}

}
